<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jmw.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>javascripts/commond.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.all.min.js"></script>
     <script type="text/javascript" charset="utf-8" src="<?php echo $_BASE_DIR?>baidu_editor/lang/zh-cn/zh-cn.js"></script>
<link href="<?php echo $_BASE_DIR?>uploadify/css/uploadify.css"
    rel="stylesheet" type="text/css" />

<style type="text/css">
#header {
    height: 85px
}

#leftside,#container,#splitBar,#splitBarProxy {
    top: 90px
}
</style>
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
        width : 345           
    });
    $(".select2").uedSelect({
        width : 167  
    });
    $(".select3").uedSelect({
        width : 110
    });
});
</script>
<script src="<?php echo $_BASE_DIR?>javascripts/jquery.ocupload.min.js"
    type="text/javascript"></script>

<script type="text/javascript">

function ajaxpost(form)
{
  var data = $(form).serialize();
  $.post(form.action, data,function(result){
    result = eval("("+result+")");
    alert(result.message);
    if( result.forwardUrl !== 'null' && result.forwardUrl !== null )
    {
      window.location.href = result.forwardUrl;
    }
    });
  return false;
}

</script>
<?php
    $upload_url = url('admin::interface/uploadeditor');
    $host = Helper_Common::getRequestHost();
?>
</head>

<body>

     <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">主页</a></li>
   
    </ul>
    </div>

    <div class="formbody">
    <div id="usual1" class="usual">
    <div id="tab1" class="tabson">
    <ul class="forminfo">
     <form action="<?php echo url("fxset/index")?>" method="post" onsubmit="return ajaxpost(this)"  class="pageForm required-validate">
        <input type="hidden" value="<?php echo $info->id ?>" name="id" />

        <li>
            <label>开关 </label>
            <div class="vocation">
                <div class="uew-select">
                    <select id="is_open" name="is_open" class="select3" qform_group_id="" placeholder="开关" style="width: 102px;">
                        <option value="0" <?php if($info->is_open==0) echo('selected')?> >关闭</option>
                        <option value="1" <?php if($info->is_open==1) echo('selected')?> >打开</option>
                        
                    </select>
                </div>
            </div>

        </li>



        <li>
            <label>分销商身份 </label>
            <div class="vocation">
                <div class="uew-select">
                    <select id="fx_man" name="fx_man" class="select3" qform_group_id="" placeholder="分销商身份" style="width: 102px;">
                        <option value="1" <?php if($info->fx_man) echo('selected')?>>仅vip</option>
                        <option value="0" <?php if(!$info->fx_man) echo('selected')?>  >所有人</option>
                    </select>
                </div>
            </div>

        </li>

        <li>
            <label>分销等级 </label>
            <div class="vocation">
                <div class="uew-select">
                    <select id="level" name="level" class="select3" qform_group_id="" placeholder="分销等级" style="width: 102px;">
                        <option value="1" <?php if($info->level==1) echo('selected')?>  >一级</option>
                        <option value="2" <?php if($info->level==2) echo('selected')?>  >二级</option>
                        <option value="3" <?php if($info->level==3) echo('selected')?>  >三级</option>
                    </select>
                </div>
            </div>

        </li>
             
        <li>
        <label>分销二维码背景图</label>
        <input type="button" class='jmwup' value="上传文件" id="bpic_url">
        <script type="text/javascript">
        $('#bpic_url').upload({
          action: '<?php echo($upload_url) ?>',
          onComplete: function(data) {
            var obj = eval('('+ data +')');
            if(obj.err == '' && obj.msg.url)
            {
              $('#bg_img').val('<?php echo($host) ?>'+obj.msg.url.substr(1));
              alert('上传成功');
            }else{
              alert(obj.err);
            }
          }
        });
        </script>
        <input type="text" title="分销二维码背景图" id="bg_img" class="dfinput" style="width:200px;" value="<?php echo $info->bg_img ?>" name="bg_img" />
        </li>

        
        <li>
            <label>分销说明</label>
            <textarea name="sysset" class="dfinput" style="width: 400px;height: 120px"><?php echo $info->sysset ?></textarea>
            
        </li>
        

        <li><label></label><input name="" type="submit" class="btn" value="确认"/></li>
      
    
    </form>
    </ul></div></div></div></body></html>
    

